<?php 
$ajax_url = $_SERVER["HTTP_HOST"];
// $cur_url=$_SERVER["HTTP_HOST"].$_SERVER["PHP_SELF"];
// if($_SERVER["QUERY_STRING"]){
//     $cur_url=$cur_url."?".$_SERVER["QUERY_STRING"];
// }
// $cur_url='http://' .$cur_url;

// $cur_url="http://".$_SERVER["HTTP_HOST"]."/Home/Userindex/index";
// if($_SERVER["QUERY_STRING"]){
//      $cur_url=$cur_url."?".$_SERVER["QUERY_STRING"];
// }
?>
<!doctype html>
<html>

	<head>
		<title></title>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
        <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/webstyle.css"/>
        <script src="__PUBLIC__/js/jquery-2.2.3.min.js" type="text/javascript" charset="utf-8"></script>
        <script src="__PUBLIC__/js/use.js" type="text/javascript" charset="utf-8"></script>
    	<script type="text/javascript">
    	var G_APP = "__APP__";
    	$(function(){
    		$('#ceshi').click(function(){
    		var ad={};
         		
         		para={};
         		para['url'] = 'debug_clear_uinfo';
         		para['data'] = ad;
         		AjaxLoad(para,function(re){
					alert('您的信息已清除,请重新扫描二维码进入系统(仅供测试用).')
				});
    	})
    	})
    	
    	</script>
    	<script>
			var _hmt = _hmt || [];
			(function() {
			  var hm = document.createElement("script");
			  hm.src = "//hm.baidu.com/hm.js?c539273ac6bc6a2d75e2fa69ee59f0e0";
			  var s = document.getElementsByTagName("script")[0]; 
			  s.parentNode.insertBefore(hm, s);
			})();
			</script>
	<script type="text/javascript">
	    var ajax_url = '<?php echo $ajax_url; ?>';//ajax 访问地址
	    var cur_url= '{$wx_share_config["cur_curl"]}';
	    var wx_title_1='分享标题';
	    var wx_desc_1='分享正文'; 
	    var wx_link_1='{$wx_share_config["cur_curl"]}'; //待分享链接(默认本页链接)
	    var wx_imgUrl_1 = 'http://' + '<?php echo$_SERVER['HTTP_HOST']?>' + '/Public/img/wx_share_icon.png';
	    var wx_title = wx_title_1;
	    var wx_desc=wx_desc_1;
	    var wx_link = wx_link_1;
	    var wx_imgUrl= wx_imgUrl_1;
	     wx.config({
	            debug: false, 
	            appId: '{$wx_share_config["appId"]}', // 必填，公众号的唯一标识
	            timestamp: '{$wx_share_config["timestamp"]}', // 必填，生成签名的时间戳
	            nonceStr: '{$wx_share_config["nonceStr"]}', // 必填，生成签名的随机串
	           signature: '{$wx_share_config["signature"]}', // 必填，签名，见附录1
	            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
	        });
	        

	        wx.error(function(res) {
	            //alert(res);
	            
	        });
	        var wx_init=function(){
	            wx.onMenuShareAppMessage({
	                title: wx_title, 
	                desc: wx_desc, 
	                link: wx_link, 
	                imgUrl: wx_imgUrl, 
	                type: '', 
	                dataUrl: '', 
	                success: function() {
	                    var ad={};
		         		para={};
		         		para['url'] = 'points_index';
		         		ad['type'] = '2'; 
		         		ad['object_id'] = '0'; 
		         		para['data'] = ad;
		         		AjaxLoad(para,function(re){
							
						});
	                },
	                cancel: function() {
	                   
	                }
	            });
	            wx.onMenuShareTimeline({
	                title: wx_title,
	                link: wx_link,
	                imgUrl: wx_imgUrl,
	                success: function() {
	                	var ad={};
		         		para={};
		         		para['url'] = 'points_index';
		         		ad['type'] = '2'; 
		         		ad['object_id'] = '0'; 
		         		para['data'] = ad;
		         		AjaxLoad(para,function(re){
							
						});
	                   
	                },
	                cancel: function() {
	                }
	            });

	    }
	    wx.ready(wx_init);
	</script>
	</head>

	<body>
	<div class="alert_fixed_box" >
		<div class="text_box">
		<span></span>		
		<div class="close_btn"></div>
		</div>
	</div>
	<div class="loading_box">
		<div></div>
	</div>
	<!--<div style="position:fixed;background-color:#fff;bottom:2%;left:2%;z-index:9999;font-size:2em;" id="ceshi">debug</div>-->
	
		